package com.dev;
import android.widget.LinearLayout;
import android.view.View.OnClickListener;
import android.view.View;
import android.widget.TextView;
import android.graphics.Typeface;
import android.view.Gravity;
import android.util.TypedValue;
import android.text.TextUtils;
public class JavaEditorPage extends LinearLayout implements OnClickListener{
	MainActivity ma;
	public IconView ivMenu;
	public LinearLayout titlebar;
	public TextView status;
	public JavaIndentEditor jie;
    public JavaEditorPage(JavaEditorTab jet){
		super(jet.ma);
		this.ma=jet.ma;
		setOrientation(VERTICAL);
		ivMenu=new IconView(ma);
		ivMenu.setImageResource(R.drawable.ic_dots_vertical);
		ivMenu.setOnClickListener(this);
		titlebar=new LinearLayout(ma);
		titlebar.setOrientation(0);
		titlebar.addView(ivMenu);
		status=new TextView(ma);
		status.setTypeface(Typeface.MONOSPACE);
		status.setGravity(Gravity.CENTER_VERTICAL);
		status.setTextSize(1,13);
		status.setSingleLine();
		status.setEllipsize(TextUtils.TruncateAt.START);
		jie=new JavaIndentEditor(ma);
        jie.jep=this;
		//addView(titlebar,-1,ma.dialogTitleBarHeight);
		addView(status,0,(int)(15*ma.dp));
		addView(jie,new LayoutParams(-1,0,1f));
	}
	@Override
	public void onClick(View view) {
		if(view==ivMenu){
		}
	}
}
